package com.fita.wechat.handler;

import java.util.Date;

/**
 * 
 * @author mohanlan
 *
 */
public interface SmsHandler {
    
    /**
     * 
     * @param mobile
     * @return
     */
    public String generateVerifyCode(String mobile);
    
    /**
     * 
     * @param mobile
     * @param code
     * @return 
     */
    public boolean sendVerifyCode(String mobile, String code);
    
    /**
     * 
     * @param mobile
     * @param surname
     * @param name
     * @param code
     * @param pdfUrl
     * @param url
     * @return
     */
    public boolean sendOrderMessage(String mobile, String surname, String name, String code, String pdfUrl, String url);
    
    /**
     * 
     * @param mobile
     * @param supplierName
     * @param code
     * @param startDate
     * @param endDate
     * @param url
     * @return
     */
    public boolean sendOrderStayingMessage(String mobile, String supplierName, String code, Date startDate, Date endDate, String url);
    
    /**
     * 
     * @param mobile
     * @param order
     * @param url
     * @return
     */
    public boolean sendOrderCancelMessage(String mobile, String code, String url);
    
    /**
     * 
     * @param mobile
     * @param code
     * @param token
     * @return
     */
    public boolean checkVerifyCode(String mobile, String code, String token);
    
    /**
     * @param mobile
     * @param content
     * @return
     */
    public boolean sendMessage(String mobile, String content);

    /**
     *
     * @param mobile
     * @param content
     * @return
     */
    public boolean sendAuditSuccessMessage(String mobile,String content);
    
}
